GBML manual / Constants

SCANLINES_STATIC

Static: rows picked at random have their green swapped, so the picture buzzes with noise.

Works differently on Game Boy - A scanline look on the Game Boy darkens some rows by one shade, as a rolling bar or a few thin stripes; see screen_scanlines.

Game Boy Color: not available

Sega Genesis: not built yet

On other consoles this differs: see Side by side and How the consoles differ.

Syntax

SCANLINES_STATIC: constant

<!-- GENERATED by tools/gbabel_looks.py from its LOOKS registry. Never edit this page: change the registry and re-run it. -->

Description

Names the static, for screen_scanlines. Rows picked at random have their green swapped. The picking is the same every time you run the game, and it repeats every 64 rows. With a speed the picture buzzes as the pattern slides over it. Swapping the green only shows where two pixels side by side have different amounts of green, so a flat area looks the same either way. Pictures with lots of detail show it most.

strength is how many rows are swapped: 1 swaps about one row in four, 2 about half of them, and 3 about three in four.

A real capture, four pictures of the same striped lighthouse standing in front of a wall of thin blue stripes and a floor of thin gold stripes - first as it is, then with SCANLINES_STATIC at strength 1, 2 and 3 (more and more rows picked at random turn pink and green, about one in four, then half of them, then three in four, so the picture gets noisier) - the pattern held in the same place each timeA real capture, four pictures of the same striped lighthouse standing in front of a wall of thin blue stripes and a floor of thin gold stripes - first as it is, then with SCANLINES_STATIC at strength 1, 2 and 3 (more and more rows picked at random turn pink and green, about one in four, then half of them, then three in four, so the picture gets noisier) - the pattern held in the same place each time
A real capture, four pictures of the same striped lighthouse standing in front of a wall of thin blue stripes and a floor of thin gold stripes - first as it is, then with SCANLINES_STATIC at strength 1, 2 and 3 (more and more rows picked at random turn pink and green, about one in four, then half of them, then three in four, so the picture gets noisier) - the pattern held in the same place each time

The same picture four times: straight, then strength 1, 2 and 3 from left to right, each one standing still where the pattern had got to. Real pictures from a Game Boy Advance ROM.

speed is how many rows the pattern travels down the screen every frame. 0 holds it still, a negative number sends it up, 0.25 is slow and 1 is quick. The pattern moves four rows at a time, because that is how the console reads it. It belongs to the rows of the screen.

A real capture, 16 frames played in a loop - rows of pink and green slide down the screen, a different set of rows turned in every pictureA real capture, 16 frames played in a loop - rows of pink and green slide down the screen, a different set of rows turned in every picture
A real capture, 16 frames played in a loop - rows of pink and green slide down the screen, a different set of rows turned in every picture

The pattern moving, sped up: sixteen real pictures four frames apart, played 70 milliseconds each, at strength 3. It is a whole turn of the pattern, so the loop has no seam. This picture is an animated PNG; a viewer that cannot animate shows its first frame.

Example

screen_scanlines(SCANLINES_STATIC, 2, 1);

A picture that buzzes with noise. Call it once, for example when the room starts - it keeps going by itself until you call screen_scanlines(SCANLINES_NONE, 0, 0) or a room is loaded.

See also: screen_scanlinesSCANLINES_NONESCANLINES_CRT